package com.wx.service.client.config.web;

import com.wx.service.client.config.service.IWConfigService;
import com.wx.service.client.config.vo.WxConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class WxConfigController {

  @Autowired
  private IWConfigService wxConfigService;

  @ResponseBody
  @RequestMapping(value = "/wx-config", method = RequestMethod.GET)
  public WxConfig getWxConfig(@RequestParam String url) {
    return wxConfigService.getWXConfig(url);
  }
}
